// Genetic.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <fstream>
#include "GeneticProcessInvoker.h"
#include "GeneticProcess.h"
#include "IGeneticProcess.h"
#include "ISpecimenFactory.h"
#include "TriangleSpecimenFactory.h"
#include "Random.h"

int _tmain(int argc, _TCHAR* argv[])
{
	char tmp;
	
	std::ofstream f;
	f.open("Genetic.txt");
	f << "Genetic" << std::endl << std::endl;
	Random *generator = new Random(1, 1000);
	ISpecimenFactory *sf = new TriangleSpecimenFactory(generator);
	GeneticProcessInvoker *pi = new GeneticProcessInvoker(f);
	IGeneticProcess *gp = new GeneticProcess(1000, 17, 17, sf, generator);
	pi->DoEvolution(gp, 100);
	
	f.close();
	delete generator;
	delete sf;
	delete pi;
	delete gp;

	std::cin >> tmp;
	return 0;
}

